﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001133 RID: 4403
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetAvatarPathScRsp : IMessage<SetAvatarPathScRsp>, IMessage, IEquatable<SetAvatarPathScRsp>, IDeepCloneable<SetAvatarPathScRsp>, IBufferMessage
	{
		// Token: 0x170037C5 RID: 14277
		// (get) Token: 0x0600C512 RID: 50450 RVA: 0x00214999 File Offset: 0x00212B99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetAvatarPathScRsp> Parser
		{
			get
			{
				return SetAvatarPathScRsp._parser;
			}
		}

		// Token: 0x170037C6 RID: 14278
		// (get) Token: 0x0600C513 RID: 50451 RVA: 0x002149A0 File Offset: 0x00212BA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetAvatarPathScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170037C7 RID: 14279
		// (get) Token: 0x0600C514 RID: 50452 RVA: 0x002149B2 File Offset: 0x00212BB2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetAvatarPathScRsp.Descriptor;
			}
		}

		// Token: 0x0600C515 RID: 50453 RVA: 0x002149B9 File Offset: 0x00212BB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAvatarPathScRsp()
		{
		}

		// Token: 0x0600C516 RID: 50454 RVA: 0x002149C1 File Offset: 0x00212BC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAvatarPathScRsp(SetAvatarPathScRsp other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C517 RID: 50455 RVA: 0x002149F2 File Offset: 0x00212BF2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAvatarPathScRsp Clone()
		{
			return new SetAvatarPathScRsp(this);
		}

		// Token: 0x170037C8 RID: 14280
		// (get) Token: 0x0600C518 RID: 50456 RVA: 0x002149FA File Offset: 0x00212BFA
		// (set) Token: 0x0600C519 RID: 50457 RVA: 0x00214A02 File Offset: 0x00212C02
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MultiPathAvatarType AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x170037C9 RID: 14281
		// (get) Token: 0x0600C51A RID: 50458 RVA: 0x00214A0B File Offset: 0x00212C0B
		// (set) Token: 0x0600C51B RID: 50459 RVA: 0x00214A13 File Offset: 0x00212C13
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600C51C RID: 50460 RVA: 0x00214A1C File Offset: 0x00212C1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetAvatarPathScRsp);
		}

		// Token: 0x0600C51D RID: 50461 RVA: 0x00214A2A File Offset: 0x00212C2A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetAvatarPathScRsp other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C51E RID: 50462 RVA: 0x00214A68 File Offset: 0x00212C68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != MultiPathAvatarType.None)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C51F RID: 50463 RVA: 0x00214AC6 File Offset: 0x00212CC6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C520 RID: 50464 RVA: 0x00214ACE File Offset: 0x00212CCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C521 RID: 50465 RVA: 0x00214AD8 File Offset: 0x00212CD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this.AvatarId != MultiPathAvatarType.None)
			{
				output.WriteRawTag(112);
				output.WriteEnum((int)this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C522 RID: 50466 RVA: 0x00214B34 File Offset: 0x00212D34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != MultiPathAvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C523 RID: 50467 RVA: 0x00214B8C File Offset: 0x00212D8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetAvatarPathScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != MultiPathAvatarType.None)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C524 RID: 50468 RVA: 0x00214BDC File Offset: 0x00212DDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C525 RID: 50469 RVA: 0x00214BE8 File Offset: 0x00212DE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 104U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarId = (MultiPathAvatarType)input.ReadEnum();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004F6D RID: 20333
		private static readonly MessageParser<SetAvatarPathScRsp> _parser = new MessageParser<SetAvatarPathScRsp>(() => new SetAvatarPathScRsp());

		// Token: 0x04004F6E RID: 20334
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004F6F RID: 20335
		public const int AvatarIdFieldNumber = 14;

		// Token: 0x04004F70 RID: 20336
		private MultiPathAvatarType avatarId_;

		// Token: 0x04004F71 RID: 20337
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04004F72 RID: 20338
		private uint retcode_;
	}
}
